package com.wan37.logic.service.impl;

import com.wan37.logic.dao.SceneGoDao;
import com.wan37.logic.domain.entity.SceneGoDO;
import com.wan37.logic.service.SceneGoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : luoyong
 * @date : 2020-05-28 11:33
 **/
@Service("sceneGoService")
public class SceneGoServiceImpl implements SceneGoService {
    @Autowired
    SceneGoDao sceneGoDao;

    @Override
    public List<SceneGoDO> getAllSceneGos() {
        List<SceneGoDO> sceneGoDOS = sceneGoDao.getAll();
        if (sceneGoDOS != null) {
            return sceneGoDOS;
        } else {
            return null;
        }
    }
}
